import Vue from 'vue'
import App from './App'
import store from './utils/store'
import common from './utils/common.js'
import login from './utils/login.js'
import api from './utils/api'
import http from './utils/http'
import fun from './utils/fun'
//注册全局组件 两种方案
// import noMore from './components/no-more'
// Vue.component('noMore', noMore);
import globalComponents from '@/utils/globalComponents'
Vue.use(globalComponents);
Vue.use(fun);//将全局函数当做插件来进行注册
Vue.config.productionTip = false

Vue.prototype.common = common
Vue.prototype.login = login
Vue.prototype.store = store;
Vue.prototype.api = api
Vue.prototype.http = http

Vue.prototype.bus = new Vue()
// import VConsole from 'vconsole'
// new VConsole()

App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})
app.$mount()
